# 用二位列表存储股票信息
stock_list = [['600000', '浦发银行', 11.52, 11.52, 11.61, 11.40],
            ['600036', '招商银行', 37.27, 36.84, 37.44, 36.52],
            ['600048', '保利地产', 16.87, 16.61, 16.93, 16.45],
            ['000001', '平安银行', 14.73, 14.49, 14.68, 14.40],
            ['000063', '中兴通讯', 41.24, 40.98, 41.59, 40.67],
            ['300142', '沃森生物', 60.40, 64.65, 65.59, 59.55]
        ]
stock_index_str = input("请输入股票的序号: ")
# 将输入的字符串转为整数
stock_index_number = int(stock_index_str)
# 获取股票信息的子列表
stock_info = stock_list[stock_index_number]
# 利用正向序号，获取股票前四项信息
print('代码: {} 名称: {}'.format(stock_info[0], stock_info[1]))
print('开盘价: {} 收盘价: {}'.format(stock_info[2], stock_info[3]))
# 利用负向序号，获取股票后两项信息  
print('最高价: {} 最低价: {}'.format(stock_info[-2], stock_info[-1]))     